package cn.com.nes.site.controller.crm.customer.vo;

import cn.com.nes.site.entity.vo.PageVO;
import cn.com.nes.site.service.crm.customer.bo.CustomerStaffBO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import javax.validation.constraints.NotNull;

@ApiModel(value = "客户联系人分页入参模型")
@Data
public class CustomerStaffPageVO extends PageVO {

    @ApiModelProperty(value = "客户UUID")
    @NotNull(message = "客户UUID")
    private String customerUuid;

    @ApiModelProperty(value = "联系人姓名")
    private String name;

    @ApiModelProperty(value = "联系人电话")
    private String phone;

    public CustomerStaffBO convertToBo() {
        CustomerStaffBO bo = new CustomerStaffBO();
        BeanUtils.copyProperties(this, bo);
        return bo;
    }

}
